<?php

namespace app\common\validate\business;

use think\Validate;

class Record extends Validate
{
    protected $rule = [
        'total'  => ['require'],
        'busid'   => ['require'],
        // 'content' => ['require'],
    ];

    /**
     * 定义错误信息
     * 格式：'字段名.规则名'	=>	'错误信息'
     *
     * @var array
     */
    protected $message = [
        'total.require' => '消费金额必填',
        'busid.require'     => '用户必须填写',
        // 'content.require'   => '消费描述必须填写',
    ];

    /**
     * 验证场景定义
     * 格式：'场景名称'	=>	['字段1','字段2'...]
     *
     * @var array
     */
    protected $scene = [];
}
